#!coding=utf-8

import threading
import time

current_thread = threading.current_thread()

def test_thread_isAlive(thread_obj: threading.Thread):
    while True:
        print(f"Thread {thread_obj.ident} is alive: {thread_obj.is_alive()}")
        time.sleep(1)


thread = threading.Thread(target=test_thread_isAlive, args=(current_thread,))
thread.start()


time.sleep(3)
print("isEnd?")

thread.join()